{{include file="user/u_header.html"}}
<div class="w998 u_main clear">
	{{include file="user/u_leftMenu.html"}}	
    <!--右侧开始-->
    <div class="Fr right">
<script type="text/javascript" src="res/js/lhgcalendar/lhgcalendar.min.js"></script>
<script type="text/javascript">
$(function(){ 
    $('#starttime').calendar({ maxDate:'%y-%M-%d' });
    $('#endtime').calendar({ minDate:'#starttime',maxDate:'%y-%M-%d' });
});
</script>

        交易记录
        账户金额：{{$moneydata.MONEY_TOTAL}}元   冻结金额：{{$moneydata.MONEY_FROZEN}}元
        <a href="{{$smarty.const.TIN_LFT_URL}}member/recharge.action?method=netpay_sel_bank" target="_blank">充值</a>
        <a href="{{$smarty.const.TIN_LFT_URL}}member/draw.action?method=fillform" target="_blank">提现</a>
    <div>
        <form action="user.php" method="get"> 
            <input type="hidden" name="ctl" value="pay">
                时间:
            <input class="runcode" name="starttime" id="starttime" value="{{$smarty.get.starttime}}" />
            到<input class="runcode" name="endtime" id="endtime" value="{{$smarty.get.endtime}}" />
            <input type="submit" />

        
            类型:
            <a href="user.php?ctl=pay&page={{$smarty.get.page}}&starttime={{$smarty.get.starttime}}&endtime={{$smarty.get.endtime}}&type=0">不限</a>
            <a href="user.php?ctl=pay&page={{$smarty.get.page}}&starttime={{$smarty.get.starttime}}&endtime={{$smarty.get.endtime}}&type=1">充值</a>
            <a href="user.php?ctl=pay&page={{$smarty.get.page}}&starttime={{$smarty.get.starttime}}&endtime={{$smarty.get.endtime}}&type=2">提现</a>
            <a href="user.php?ctl=pay&page={{$smarty.get.page}}&starttime={{$smarty.get.starttime}}&endtime={{$smarty.get.endtime}}&type=3">投资</a>
            <a href="user.php?ctl=pay&page={{$smarty.get.page}}&starttime={{$smarty.get.starttime}}&endtime={{$smarty.get.endtime}}&type=4">回收利息</a>
            <a href="user.php?ctl=pay&page={{$smarty.get.page}}&starttime={{$smarty.get.starttime}}&endtime={{$smarty.get.endtime}}&type=5">回收本金</a>
        </form>
    </div>
        <table>
            <tr>
                <th>时间</th>
                <th>交易类型</th>
                <th>用户</th>
                <th>金额(¥) | 明细</th>
                <th>可用余额(¥)</th>
            </tr>
            {{foreach from=$paydata item=item}}
            <tr>
                <td>{{$item.TRANSDATE.0}}</td>
                <td>{{$item.TRANSCATEGORY.0}}{{$item.REMARK.0}}</td>
                <td>{{$item.OTHERSIDE.0}}</td>
                <td>{{$item.TRANSAMOUNT.0}}</td>
                <td>{{$item.ENDBALANCE.0}}</td>
            </tr>
            {{/foreach}}
        </table>
        {{if $count>1}}
        {{section name=loop loop=$count}}
            <a href="user.php?ctl=pay&page={{$smarty.section.loop.index+1}}">{{$smarty.section.loop.index+1}}</a>
        {{/section}}
        {{/if}}
    </div>
    <!--右侧结束-->
</div>
{{include file="user/u_footer.html"}}
